package com.class04.override.test1;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/8 15:53
 */
public class Order {
    //    私有属性
    private int orderPrivate;
    //    默认属性
    int orderDefault;
    //    受保护属性
    protected int orderProtected;
    //    公有属性
    public int orderPublic;


    private void methodPrivate() {
    }

    void methodDefault() {
    }

    protected void methodProtected() {
    }

    public void methodPublic() {
    }


    //    类内部
    public void show() {
        orderPrivate = 1;
        orderDefault = 1;
        orderProtected = 1;
        orderPublic = 1;
        methodPrivate();
        methodDefault();
        methodProtected();
        methodPublic();
    }

}
